<!DOCTYPE html>
<html>

<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title>nodeDemo</title>
	<link rel="stylesheet" href="/public/lib/bootstrap/dist/css/bootstrap.css">
	<style>
		.container-fluid {
			margin-top: 20px;

		}
		.list-group-item{
			font-size: 12px;
			color: #666;
			display: flex;
			justify-content: space-between;
		}
		.item_right span{
			margin-right: 30px;
		}
	</style>
</head>

<body>
	<div class="container-fluid">
		<div class="list-group">
			<li class="list-group-item active" style="height: 52px;line-height: 30px;">格言列表
				<a href="/post" class="btn btn-sm btn-danger pull-right">
					<i class="glyphicon glyphicon-pencil"></i>
					发表格言</a>
			</li>
			{{ each list }}
			<li class="list-group-item">
				<span>
					{{ $value.message }}
				</span>
				<span class="item_right">
					<span>{{ $value.time }}</span>
					<span>{{ $value.name }}</span>

					<a href="/editInfo?id={{ $value._id }}">编辑</a>
					<a href="/delete?id={{ $value._id }}">删除</a>
				</span>
			</li>
			{{ /each }}
		</div>
	</div>
</body>

</html>